package com.smart.eleven.annotate.transaction;

import org.springframework.transaction.annotation.Transactional;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * 定义tx2事务管理器注解
 *
 * @uthor junrui.wang
 * @create 2019/8/8
 */

@Target({ElementType.METHOD, ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
@Transactional("txManager2") //绑定txManager2事务管理器
public @interface TxManager2Transactional {
}
